package xyz.xiezc.xhttp.common;

import xyz.xiezc.ioc.annotation.Component;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author wb-xzc291800
 * @date 2019/04/24 11:28
 */

@Target({ElementType.TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Component
public @interface PathMapping {
    /**
     * 路径
     *
     * @return
     */
    String value();

    /**
     * 方法
     *
     * @return
     */
    String method() default "get";
}
